package com.xian.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xian.manage.mapper.HandmadePersonMapper;
import com.xian.manage.domain.HandmadePerson;
import com.xian.manage.service.IHandmadePersonService;

/**
 * 继承人管理Service业务层处理
 * 
 * @author Hanys
 * @date 2025-04-02
 */
@Service
public class HandmadePersonServiceImpl implements IHandmadePersonService 
{
    @Autowired
    private HandmadePersonMapper handmadePersonMapper;

    /**
     * 查询继承人管理
     * 
     * @param id 继承人管理主键
     * @return 继承人管理
     */
    @Override
    public HandmadePerson selectHandmadePersonById(Long id)
    {
        return handmadePersonMapper.selectHandmadePersonById(id);
    }

    /**
     * 查询继承人管理列表
     * 
     * @param handmadePerson 继承人管理
     * @return 继承人管理
     */
    @Override
    public List<HandmadePerson> selectHandmadePersonList(HandmadePerson handmadePerson)
    {
        return handmadePersonMapper.selectHandmadePersonList(handmadePerson);
    }

    /**
     * 新增继承人管理
     * 
     * @param handmadePerson 继承人管理
     * @return 结果
     */
    @Override
    public int insertHandmadePerson(HandmadePerson handmadePerson)
    {
        return handmadePersonMapper.insertHandmadePerson(handmadePerson);
    }

    /**
     * 修改继承人管理
     * 
     * @param handmadePerson 继承人管理
     * @return 结果
     */
    @Override
    public int updateHandmadePerson(HandmadePerson handmadePerson)
    {
        return handmadePersonMapper.updateHandmadePerson(handmadePerson);
    }

    /**
     * 批量删除继承人管理
     * 
     * @param ids 需要删除的继承人管理主键
     * @return 结果
     */
    @Override
    public int deleteHandmadePersonByIds(Long[] ids)
    {
        return handmadePersonMapper.deleteHandmadePersonByIds(ids);
    }

    /**
     * 删除继承人管理信息
     * 
     * @param id 继承人管理主键
     * @return 结果
     */
    @Override
    public int deleteHandmadePersonById(Long id)
    {
        return handmadePersonMapper.deleteHandmadePersonById(id);
    }
}
